Optimal. Leaf size=668 \[ \frac {2809728 a^4 x \left (a-b x^2\right )^{2/3}}{267995}+\frac {1404864 a^3 x \left (a-b x^2\right )^{5/3}}{191425}-\frac {33264 a^2 x \left (a-b x^2\right )^{8/3}}{14725}-\frac {432}{775} a x \left (a-b x^2\right )^{8/3} \left (3 a+b x^2\right )-\frac {3}{31} x \left (a-b x^2\right )^{8/3} \left (3 a+b x^2\right )^2-\frac {11238912 a^5 x}{267995 \left (\left (1-\sqrt {3}\right ) \sqrt [3]{a}-\sqrt [3]{a-b x^2}\right )}-\frac {5619456 \sqrt [4]{3} \sqrt {2+\sqrt {3}} a^{16/3} \left (\sqrt [3]{a}-\sqrt [3]{a-b x^2}\right ) \sqrt {\frac {a^{2/3}+\sqrt [3]{a} \sqrt [3]{a-b x^2}+\left (a-b x^2\right )^{2/3}}{\left (\left (1-\sqrt {3}\right ) \sqrt [3]{a}-\sqrt [3]{a-b x^2}\right )^2}} E\left (\sin ^{-1}\left (\frac {\left (1+\sqrt {3}\right ) \sqrt [3]{a}-\sqrt [3]{a-b x^2}}{\left (1-\sqrt {3}\right ) \sqrt [3]{a}-\sqrt [3]{a-b x^2}}\right )|-7+4 \sqrt {3}\right )}{267995 b x \sqrt {-\frac {\sqrt [3]{a} \left (\sqrt [3]{a}-\sqrt [3]{a-b x^2}\right )}{\left (\left (1-\sqrt {3}\right ) \sqrt [3]{a}-\sqrt [3]{a-b x^2}\right )^2}}}+\frac {3746304 \sqrt {2} 3^{3/4} a^{16/3} \left (\sqrt [3]{a}-\sqrt [3]{a-b x^2}\right ) \sqrt {\frac {a^{2/3}+\sqrt [3]{a} \sqrt [3]{a-b x^2}+\left (a-b x^2\right )^{2/3}}{\left (\left (1-\sqrt {3}\right ) \sqrt [3]{a}-\sqrt [3]{a-b x^2}\right )^2}} F\left (\sin ^{-1}\left (\frac {\left (1+\sqrt {3}\right ) \sqrt [3]{a}-\sqrt [3]{a-b x^2}}{\left (1-\sqrt {3}\right ) \sqrt [3]{a}-\sqrt [3]{a-b x^2}}\right )|-7+4 \sqrt {3}\right )}{267995 b x \sqrt {-\frac {\sqrt [3]{a} \left (\sqrt [3]{a}-\sqrt [3]{a-b x^2}\right )}{\left (\left (1-\sqrt {3}\right ) \sqrt [3]{a}-\sqrt [3]{a-b x^2}\right )^2}}} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.50, antiderivative size = 668, normalized size of antiderivative = 1.00, number of steps
used = 9, number of rules used = 8, integrand size = 24, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.333, Rules used = {427, 542, 396,
201, 241, 310, 225, 1893} \begin {gather*} \frac {3746304 \sqrt {2} 3^{3/4} a^{16/3} \left (\sqrt [3]{a}-\sqrt [3]{a-b x^2}\right ) \sqrt {\frac {a^{2/3}+\sqrt [3]{a} \sqrt [3]{a-b x^2}+\left (a-b x^2\right )^{2/3}}{\left (\left (1-\sqrt {3}\right ) \sqrt [3]{a}-\sqrt [3]{a-b x^2}\right )^2}} F\left (\text {ArcSin}\left (\frac {\left (1+\sqrt {3}\right ) \sqrt [3]{a}-\sqrt [3]{a-b x^2}}{\left (1-\sqrt {3}\right ) \sqrt [3]{a}-\sqrt [3]{a-b x^2}}\right )|-7+4 \sqrt {3}\right )}{267995 b x \sqrt {-\frac {\sqrt [3]{a} \left (\sqrt [3]{a}-\sqrt [3]{a-b x^2}\right )}{\left (\left (1-\sqrt {3}\right ) \sqrt [3]{a}-\sqrt [3]{a-b x^2}\right )^2}}}-\frac {5619456 \sqrt [4]{3} \sqrt {2+\sqrt {3}} a^{16/3} \left (\sqrt [3]{a}-\sqrt [3]{a-b x^2}\right ) \sqrt {\frac {a^{2/3}+\sqrt [3]{a} \sqrt [3]{a-b x^2}+\left (a-b x^2\right )^{2/3}}{\left (\left (1-\sqrt {3}\right ) \sqrt [3]{a}-\sqrt [3]{a-b x^2}\right )^2}} E\left (\text {ArcSin}\left (\frac {\left (1+\sqrt {3}\right ) \sqrt [3]{a}-\sqrt [3]{a-b x^2}}{\left (1-\sqrt {3}\right ) \sqrt [3]{a}-\sqrt [3]{a-b x^2}}\right )|-7+4 \sqrt {3}\right )}{267995 b x \sqrt {-\frac {\sqrt [3]{a} \left (\sqrt [3]{a}-\sqrt [3]{a-b x^2}\right )}{\left (\left (1-\sqrt {3}\right ) \sqrt [3]{a}-\sqrt [3]{a-b x^2}\right )^2}}}-\frac {11238912 a^5 x}{267995 \left (\left (1-\sqrt {3}\right ) \sqrt [3]{a}-\sqrt [3]{a-b x^2}\right )}+\frac {2809728 a^4 x \left (a-b x^2\right )^{2/3}}{267995}+\frac {1404864 a^3 x \left (a-b x^2\right )^{5/3}}{191425}-\frac {33264 a^2 x \left (a-b x^2\right )^{8/3}}{14725}-\frac {432}{775} a x \left (a-b x^2\right )^{8/3} \left (3 a+b x^2\right )-\frac {3}{31} x \left (a-b x^2\right )^{8/3} \left (3 a+b x^2\right )^2 \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 201
Rule 225
Rule 241
Rule 310
Rule 396
Rule 427
Rule 542
Rule 1893
Rubi steps
\begin {align*} \int \left (a-b x^2\right )^{5/3} \left (3 a+b x^2\right )^3 \, dx &=-\frac {3}{31} x \left (a-b x^2\right )^{8/3} \left (3 a+b x^2\right )^2-\frac {3 \int \left (a-b x^2\right )^{5/3} \left (3 a+b x^2\right ) \left (-96 a^2 b-48 a b^2 x^2\right ) \, dx}{31 b}\\ &=-\frac {432}{775} a x \left (a-b x^2\right )^{8/3} \left (3 a+b x^2\right )-\frac {3}{31} x \left (a-b x^2\right )^{8/3} \left (3 a+b x^2\right )^2+\frac {9 \int \left (a-b x^2\right )^{5/3} \left (2544 a^3 b^2+1232 a^2 b^3 x^2\right ) \, dx}{775 b^2}\\ &=-\frac {33264 a^2 x \left (a-b x^2\right )^{8/3}}{14725}-\frac {432}{775} a x \left (a-b x^2\right )^{8/3} \left (3 a+b x^2\right )-\frac {3}{31} x \left (a-b x^2\right )^{8/3} \left (3 a+b x^2\right )^2+\frac {\left (468288 a^3\right ) \int \left (a-b x^2\right )^{5/3} \, dx}{14725}\\ &=\frac {1404864 a^3 x \left (a-b x^2\right )^{5/3}}{191425}-\frac {33264 a^2 x \left (a-b x^2\right )^{8/3}}{14725}-\frac {432}{775} a x \left (a-b x^2\right )^{8/3} \left (3 a+b x^2\right )-\frac {3}{31} x \left (a-b x^2\right )^{8/3} \left (3 a+b x^2\right )^2+\frac {\left (936576 a^4\right ) \int \left (a-b x^2\right )^{2/3} \, dx}{38285}\\ &=\frac {2809728 a^4 x \left (a-b x^2\right )^{2/3}}{267995}+\frac {1404864 a^3 x \left (a-b x^2\right )^{5/3}}{191425}-\frac {33264 a^2 x \left (a-b x^2\right )^{8/3}}{14725}-\frac {432}{775} a x \left (a-b x^2\right )^{8/3} \left (3 a+b x^2\right )-\frac {3}{31} x \left (a-b x^2\right )^{8/3} \left (3 a+b x^2\right )^2+\frac {\left (3746304 a^5\right ) \int \frac {1}{\sqrt [3]{a-b x^2}} \, dx}{267995}\\ &=\frac {2809728 a^4 x \left (a-b x^2\right )^{2/3}}{267995}+\frac {1404864 a^3 x \left (a-b x^2\right )^{5/3}}{191425}-\frac {33264 a^2 x \left (a-b x^2\right )^{8/3}}{14725}-\frac {432}{775} a x \left (a-b x^2\right )^{8/3} \left (3 a+b x^2\right )-\frac {3}{31} x \left (a-b x^2\right )^{8/3} \left (3 a+b x^2\right )^2-\frac {\left (5619456 a^5 \sqrt {-b x^2}\right ) \text {Subst}\left (\int \frac {x}{\sqrt {-a+x^3}} \, dx,x,\sqrt [3]{a-b x^2}\right )}{267995 b x}\\ &=\frac {2809728 a^4 x \left (a-b x^2\right )^{2/3}}{267995}+\frac {1404864 a^3 x \left (a-b x^2\right )^{5/3}}{191425}-\frac {33264 a^2 x \left (a-b x^2\right )^{8/3}}{14725}-\frac {432}{775} a x \left (a-b x^2\right )^{8/3} \left (3 a+b x^2\right )-\frac {3}{31} x \left (a-b x^2\right )^{8/3} \left (3 a+b x^2\right )^2+\frac {\left (5619456 a^5 \sqrt {-b x^2}\right ) \text {Subst}\left (\int \frac {\left (1+\sqrt {3}\right ) \sqrt [3]{a}-x}{\sqrt {-a+x^3}} \, dx,x,\sqrt [3]{a-b x^2}\right )}{267995 b x}-\frac {\left (5619456 \sqrt {2 \left (2+\sqrt {3}\right )} a^{16/3} \sqrt {-b x^2}\right ) \text {Subst}\left (\int \frac {1}{\sqrt {-a+x^3}} \, dx,x,\sqrt [3]{a-b x^2}\right )}{267995 b x}\\ &=\frac {2809728 a^4 x \left (a-b x^2\right )^{2/3}}{267995}+\frac {1404864 a^3 x \left (a-b x^2\right )^{5/3}}{191425}-\frac {33264 a^2 x \left (a-b x^2\right )^{8/3}}{14725}-\frac {432}{775} a x \left (a-b x^2\right )^{8/3} \left (3 a+b x^2\right )-\frac {3}{31} x \left (a-b x^2\right )^{8/3} \left (3 a+b x^2\right )^2-\frac {11238912 a^5 x}{267995 \left (\left (1-\sqrt {3}\right ) \sqrt [3]{a}-\sqrt [3]{a-b x^2}\right )}-\frac {5619456 \sqrt [4]{3} \sqrt {2+\sqrt {3}} a^{16/3} \left (\sqrt [3]{a}-\sqrt [3]{a-b x^2}\right ) \sqrt {\frac {a^{2/3}+\sqrt [3]{a} \sqrt [3]{a-b x^2}+\left (a-b x^2\right )^{2/3}}{\left (\left (1-\sqrt {3}\right ) \sqrt [3]{a}-\sqrt [3]{a-b x^2}\right )^2}} E\left (\sin ^{-1}\left (\frac {\left (1+\sqrt {3}\right ) \sqrt [3]{a}-\sqrt [3]{a-b x^2}}{\left (1-\sqrt {3}\right ) \sqrt [3]{a}-\sqrt [3]{a-b x^2}}\right )|-7+4 \sqrt {3}\right )}{267995 b x \sqrt {-\frac {\sqrt [3]{a} \left (\sqrt [3]{a}-\sqrt [3]{a-b x^2}\right )}{\left (\left (1-\sqrt {3}\right ) \sqrt [3]{a}-\sqrt [3]{a-b x^2}\right )^2}}}+\frac {3746304 \sqrt {2} 3^{3/4} a^{16/3} \left (\sqrt [3]{a}-\sqrt [3]{a-b x^2}\right ) \sqrt {\frac {a^{2/3}+\sqrt [3]{a} \sqrt [3]{a-b x^2}+\left (a-b x^2\right )^{2/3}}{\left (\left (1-\sqrt {3}\right ) \sqrt [3]{a}-\sqrt [3]{a-b x^2}\right )^2}} F\left (\sin ^{-1}\left (\frac {\left (1+\sqrt {3}\right ) \sqrt [3]{a}-\sqrt [3]{a-b x^2}}{\left (1-\sqrt {3}\right ) \sqrt [3]{a}-\sqrt [3]{a-b x^2}}\right )|-7+4 \sqrt {3}\right )}{267995 b x \sqrt {-\frac {\sqrt [3]{a} \left (\sqrt [3]{a}-\sqrt [3]{a-b x^2}\right )}{\left (\left (1-\sqrt {3}\right ) \sqrt [3]{a}-\sqrt [3]{a-b x^2}\right )^2}}}\\ \end {align*}
________________________________________________________________________________________
Mathematica [C] Result contains higher order function than in optimal. Order 5 vs. order 4 in
optimal.
time = 13.80, size = 110, normalized size = 0.16 \begin {gather*} \frac {3 \left (5815935 a^5 x-5312355 a^4 b x^3-1675114 a^3 b^2 x^5+749658 a^2 b^3 x^7+378651 a b^4 x^9+43225 b^5 x^{11}+6243840 a^5 x \sqrt [3]{1-\frac {b x^2}{a}} \, _2F_1\left (\frac {1}{3},\frac {1}{2};\frac {3}{2};\frac {b x^2}{a}\right )\right )}{1339975 \sqrt [3]{a-b x^2}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [F]
time = 0.01, size = 0, normalized size = 0.00 \[\int \left (-b \,x^{2}+a \right )^{\frac {5}{3}} \left (b \,x^{2}+3 a \right )^{3}\, dx\]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Failed to integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [A]
time = 2.90, size = 139, normalized size = 0.21 \begin {gather*} 27 a^{\frac {14}{3}} x {{}_{2}F_{1}\left (\begin {matrix} - \frac {2}{3}, \frac {1}{2} \\ \frac {3}{2} \end {matrix}\middle | {\frac {b x^{2} e^{2 i \pi }}{a}} \right )} - \frac {18 a^{\frac {8}{3}} b^{2} x^{5} {{}_{2}F_{1}\left (\begin {matrix} - \frac {2}{3}, \frac {5}{2} \\ \frac {7}{2} \end {matrix}\middle | {\frac {b x^{2} e^{2 i \pi }}{a}} \right )}}{5} - \frac {8 a^{\frac {5}{3}} b^{3} x^{7} {{}_{2}F_{1}\left (\begin {matrix} - \frac {2}{3}, \frac {7}{2} \\ \frac {9}{2} \end {matrix}\middle | {\frac {b x^{2} e^{2 i \pi }}{a}} \right )}}{7} - \frac {a^{\frac {2}{3}} b^{4} x^{9} {{}_{2}F_{1}\left (\begin {matrix} - \frac {2}{3}, \frac {9}{2} \\ \frac {11}{2} \end {matrix}\middle | {\frac {b x^{2} e^{2 i \pi }}{a}} \right )}}{9} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [F]
time = 0.00, size = -1, normalized size = -0.00 \begin {gather*} \int {\left (a-b\,x^2\right )}^{5/3}\,{\left (b\,x^2+3\,a\right )}^3 \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________